package com.liuzh.deviceinfo.provider;

import android.net.Uri;
import android.os.Build.VERSION;
import androidx.core.content.FileProvider;
import com.liuzh.deviceinfo.DeviceInfoApp;
import java.io.File;

public class ContentFileProvider extends FileProvider {
    public static Uri a(File file) {
        if (VERSION.SDK_INT >= 24) {
            return FileProvider.getUriForFile(DeviceInfoApp.c, "com.liuzh.deviceinfo.FileProvider", file);
        }
        return Uri.fromFile(file);
    }
}
